#ifndef MAT_KEYBOARD_H
#define MAT_KEYBOARD_H

#include "main.h"
#include "cmsis_os.h"


#define KEY_PRESSED 0
#define KEY_SUSPUND 1


typedef struct{
	uint8_t key_state[16];
	uint8_t keylocked_if[16];
	uint64_t key_press_time_start[16];
}Key_state_t;

extern Key_state_t key_state;

void key_state_init(void);
void key_scan(void);



#endif
